//
// Decompiled with: Decompiler.NET, Version=1.3.1.18439, Culture=neutral, PublicKeyToken=null, Version: 1.3.1.18439
// Decompilation Started at: 3/15/2009 10:34:26 PM
// Copyright 2003 - 2004, Jungle Creatures, Inc., All Rights Reserved. 
// Written by Jonathan Pierce, Email: support@junglecreatures.com
//

namespace PatientManagement

{
		
		#region Namespace Import Declarations
		
			using System.Collections;
			using System.ComponentModel;
			using System.Data;
			using System.Diagnostics;
			using System.Globalization;
			using System.IO;
			using System;
			using System.Reflection;
			using System.Runtime.Serialization;
			using System.Text;
			using System.Xml.Schema;
			using System.Xml;
			
		#endregion
		
	[System.Serializable()]
	[System.ComponentModel.DesignerCategoryAttribute ("code")]
	[System.ComponentModel.ToolboxItemAttribute (true)]
	[System.Diagnostics.DebuggerStepThroughAttribute ()]
	public class dsInvoice : DataSet
	
	{
		
		#region Fields
			private vw_ClinicalInvoicesDataTable tablevw_ClinicalInvoices;
		#endregion
		
		#region Nested Types
		
			[System.Diagnostics.DebuggerStepThroughAttribute ()]
			// [System.Reflection.DefaultMemberAttribute ("Item")]
			public class vw_ClinicalInvoicesDataTable : DataTable, IEnumerable
			
			{
				
				#region Fields
					private DataColumn columnclrDoctorPrescription;
					private DataColumn columnclrExaminationDate;
					private DataColumn columnclrISN;
					private DataColumn columnempISN;
					private DataColumn columnempName;
					private DataColumn columninvExaminationPayment;
					private DataColumn columninvMedicinePayment;
					private DataColumn columninvMedicineSkillPayment;
					private DataColumn columninvSurgeryPayment;
					private DataColumn columnpatID;
					private DataColumn columnpatISN;
					private DataColumn columnpatName;
					private DataColumn columnpltISN;
					private DataColumn columnpltName;
					public event dsInvoice.vw_ClinicalInvoicesRowChangeEventHandler vw_ClinicalInvoicesRowChanged;
					public event dsInvoice.vw_ClinicalInvoicesRowChangeEventHandler vw_ClinicalInvoicesRowChanging;
					public event dsInvoice.vw_ClinicalInvoicesRowChangeEventHandler vw_ClinicalInvoicesRowDeleted;
					public event dsInvoice.vw_ClinicalInvoicesRowChangeEventHandler vw_ClinicalInvoicesRowDeleting;
				#endregion
				
				#region Constructors
				
					internal vw_ClinicalInvoicesDataTable ()
						 : base ("vw_ClinicalInvoices")
					
					{
						this.InitClass ();
						return;
					}
					
					
					internal vw_ClinicalInvoicesDataTable (DataTable table)
						 : base (table.TableName)
					
					{
						if (table.CaseSensitive == table.DataSet.CaseSensitive)
						{
							goto L_002B;
						}
						base.CaseSensitive = table.CaseSensitive;
						
					L_002B:
						
						{
						}
						if (table.Locale.ToString () == table.DataSet.Locale.ToString ())
						{
							goto L_0059;
						}
						base.Locale = table.Locale;
						
					L_0059:
						
						{
						}
						if (table.Namespace == table.DataSet.Namespace)
						{
							goto L_007D;
						}
						base.Namespace = table.Namespace;
						
					L_007D:
						
						{
						}
						base.Prefix = table.Prefix;
						base.MinimumCapacity = table.MinimumCapacity;
						base.DisplayExpression = table.DisplayExpression;
						return;
					}
					
				#endregion
				
				#region Properties
				
					internal DataColumn clrDoctorPrescriptionColumn
					
					{
						get
						{
							DataColumn theDataColumn;
							theDataColumn = this.columnclrDoctorPrescription;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataColumn;
						}
					}
					
					
					internal DataColumn clrExaminationDateColumn
					
					{
						get
						{
							DataColumn theDataColumn;
							theDataColumn = this.columnclrExaminationDate;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataColumn;
						}
					}
					
					
					internal DataColumn clrISNColumn
					
					{
						get
						{
							DataColumn theDataColumn;
							theDataColumn = this.columnclrISN;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataColumn;
						}
					}
					
					
					[System.ComponentModel.BrowsableAttribute (false)]
					public int Count
					
					{
						get
						{
							int i;
							i = base.Rows.Count;
							goto L_000E;
							
						L_000E:
							
							{
							}
							return i;
						}
					}
					
					
					internal DataColumn empISNColumn
					
					{
						get
						{
							DataColumn theDataColumn;
							theDataColumn = this.columnempISN;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataColumn;
						}
					}
					
					
					internal DataColumn empNameColumn
					
					{
						get
						{
							DataColumn theDataColumn;
							theDataColumn = this.columnempName;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataColumn;
						}
					}
					
					
					internal DataColumn invExaminationPaymentColumn
					
					{
						get
						{
							DataColumn theDataColumn;
							theDataColumn = this.columninvExaminationPayment;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataColumn;
						}
					}
					
					
					internal DataColumn invMedicinePaymentColumn
					
					{
						get
						{
							DataColumn theDataColumn;
							theDataColumn = this.columninvMedicinePayment;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataColumn;
						}
					}
					
					
					internal DataColumn invMedicineSkillPaymentColumn
					
					{
						get
						{
							DataColumn theDataColumn;
							theDataColumn = this.columninvMedicineSkillPayment;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataColumn;
						}
					}
					
					
					internal DataColumn invSurgeryPaymentColumn
					
					{
						get
						{
							DataColumn theDataColumn;
							theDataColumn = this.columninvSurgeryPayment;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataColumn;
						}
					}
					
					
					public dsInvoice.vw_ClinicalInvoicesRow this[int index]
					
					{
						get
						{
							dsInvoice.vw_ClinicalInvoicesRow theVw_ClinicalInvoicesRow;
							theVw_ClinicalInvoicesRow = ((dsInvoice.vw_ClinicalInvoicesRow) base.Rows[index]);
							goto L_0014;
							
						L_0014:
							
							{
							}
							return theVw_ClinicalInvoicesRow;
						}
					}
					
					
					internal DataColumn patIDColumn
					
					{
						get
						{
							DataColumn theDataColumn;
							theDataColumn = this.columnpatID;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataColumn;
						}
					}
					
					
					internal DataColumn patISNColumn
					
					{
						get
						{
							DataColumn theDataColumn;
							theDataColumn = this.columnpatISN;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataColumn;
						}
					}
					
					
					internal DataColumn patNameColumn
					
					{
						get
						{
							DataColumn theDataColumn;
							theDataColumn = this.columnpatName;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataColumn;
						}
					}
					
					
					internal DataColumn pltISNColumn
					
					{
						get
						{
							DataColumn theDataColumn;
							theDataColumn = this.columnpltISN;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataColumn;
						}
					}
					
					
					internal DataColumn pltNameColumn
					
					{
						get
						{
							DataColumn theDataColumn;
							theDataColumn = this.columnpltName;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataColumn;
						}
					}
					
				#endregion
				
				#region Methods
				
					public dsInvoice.vw_ClinicalInvoicesRow Addvw_ClinicalInvoicesRow (decimal invExaminationPayment, decimal invMedicinePayment, decimal invMedicineSkillPayment, string patID, string patName, string clrDoctorPrescription, string empName, DateTime clrExaminationDate, decimal invSurgeryPayment, string pltName)
					
					{
						dsInvoice.vw_ClinicalInvoicesRow theVw_ClinicalInvoicesRow;
						dsInvoice.vw_ClinicalInvoicesRow theVw_ClinicalInvoicesRow2;
						object[] theObjectArray;
						theVw_ClinicalInvoicesRow = ((dsInvoice.vw_ClinicalInvoicesRow) base.NewRow ());
						theObjectArray = new object[14];
						theObjectArray[0] = invExaminationPayment;
						theObjectArray[1] = invMedicinePayment;
						theObjectArray[2] = invMedicineSkillPayment;
						theObjectArray[4] = patID;
						theObjectArray[5] = patName;
						theObjectArray[7] = clrDoctorPrescription;
						theObjectArray[8] = empName;
						theObjectArray[10] = clrExaminationDate;
						theObjectArray[11] = invSurgeryPayment;
						theObjectArray[13] = pltName;
						theVw_ClinicalInvoicesRow.ItemArray = theObjectArray;
						base.Rows.Add (((DataRow) theVw_ClinicalInvoicesRow));
						theVw_ClinicalInvoicesRow2 = theVw_ClinicalInvoicesRow;
						goto L_0076;
						
					L_0076:
						
						{
						}
						return theVw_ClinicalInvoicesRow2;
					}
					
					public void Addvw_ClinicalInvoicesRow (dsInvoice.vw_ClinicalInvoicesRow row)
					
					{
						base.Rows.Add (((DataRow) row));
						return;
					}
					
					public override DataTable Clone ()
					
					{
						dsInvoice.vw_ClinicalInvoicesDataTable theVw_ClinicalInvoicesDataTable;
						DataTable theDataTable;
						theVw_ClinicalInvoicesDataTable = ((dsInvoice.vw_ClinicalInvoicesDataTable) base.Clone ());
						theVw_ClinicalInvoicesDataTable.InitVars ();
						theDataTable = ((DataTable) theVw_ClinicalInvoicesDataTable);
						goto L_0016;
						
					L_0016:
						
						{
						}
						return theDataTable;
					}
					
					protected override DataTable CreateInstance ()
					
					{
						DataTable theDataTable;
						theDataTable = ((DataTable) new dsInvoice.vw_ClinicalInvoicesDataTable ());
						goto L_0008;
						
					L_0008:
						
						{
						}
						return theDataTable;
					}
					
					public virtual IEnumerator GetEnumerator ()
					
					{
						IEnumerator theIEnumerator;
						theIEnumerator = base.Rows.GetEnumerator ();
						goto L_000E;
						
					L_000E:
						
						{
						}
						return theIEnumerator;
					}
					
					protected override Type GetRowType ()
					
					{
						Type theType;
						theType = typeof (dsInvoice.vw_ClinicalInvoicesRow);
						goto L_000D;
						
					L_000D:
						
						{
						}
						return theType;
					}
					
					private void InitClass ()
					
					{
						this.columninvExaminationPayment = new DataColumn ("invExaminationPayment", typeof (decimal), ((string) null), MappingType.Element);
						base.Columns.Add (this.columninvExaminationPayment);
						this.columninvMedicinePayment = new DataColumn ("invMedicinePayment", typeof (decimal), ((string) null), MappingType.Element);
						base.Columns.Add (this.columninvMedicinePayment);
						this.columninvMedicineSkillPayment = new DataColumn ("invMedicineSkillPayment", typeof (decimal), ((string) null), MappingType.Element);
						base.Columns.Add (this.columninvMedicineSkillPayment);
						this.columnclrISN = new DataColumn ("clrISN", typeof (int), ((string) null), MappingType.Element);
						base.Columns.Add (this.columnclrISN);
						this.columnpatID = new DataColumn ("patID", typeof (string), ((string) null), MappingType.Element);
						base.Columns.Add (this.columnpatID);
						this.columnpatName = new DataColumn ("patName", typeof (string), ((string) null), MappingType.Element);
						base.Columns.Add (this.columnpatName);
						this.columnpatISN = new DataColumn ("patISN", typeof (int), ((string) null), MappingType.Element);
						base.Columns.Add (this.columnpatISN);
						this.columnclrDoctorPrescription = new DataColumn ("clrDoctorPrescription", typeof (string), ((string) null), MappingType.Element);
						base.Columns.Add (this.columnclrDoctorPrescription);
						this.columnempName = new DataColumn ("empName", typeof (string), ((string) null), MappingType.Element);
						base.Columns.Add (this.columnempName);
						this.columnempISN = new DataColumn ("empISN", typeof (int), ((string) null), MappingType.Element);
						base.Columns.Add (this.columnempISN);
						this.columnclrExaminationDate = new DataColumn ("clrExaminationDate", typeof (DateTime), ((string) null), MappingType.Element);
						base.Columns.Add (this.columnclrExaminationDate);
						this.columninvSurgeryPayment = new DataColumn ("invSurgeryPayment", typeof (decimal), ((string) null), MappingType.Element);
						base.Columns.Add (this.columninvSurgeryPayment);
						this.columnpltISN = new DataColumn ("pltISN", typeof (int), ((string) null), MappingType.Element);
						base.Columns.Add (this.columnpltISN);
						this.columnpltName = new DataColumn ("pltName", typeof (string), ((string) null), MappingType.Element);
						base.Columns.Add (this.columnpltName);
						this.columnclrISN.AutoIncrement = true;
						this.columnclrISN.AllowDBNull = false;
						this.columnclrISN.ReadOnly = true;
						this.columnpatISN.AutoIncrement = true;
						this.columnpatISN.AllowDBNull = false;
						this.columnpatISN.ReadOnly = true;
						this.columnempISN.AutoIncrement = true;
						this.columnempISN.AllowDBNull = false;
						this.columnempISN.ReadOnly = true;
						this.columnpltISN.AutoIncrement = true;
						this.columnpltISN.ReadOnly = true;
						return;
					}
					
					internal void InitVars ()
					
					{
						this.columninvExaminationPayment = base.Columns["invExaminationPayment"];
						this.columninvMedicinePayment = base.Columns["invMedicinePayment"];
						this.columninvMedicineSkillPayment = base.Columns["invMedicineSkillPayment"];
						this.columnclrISN = base.Columns["clrISN"];
						this.columnpatID = base.Columns["patID"];
						this.columnpatName = base.Columns["patName"];
						this.columnpatISN = base.Columns["patISN"];
						this.columnclrDoctorPrescription = base.Columns["clrDoctorPrescription"];
						this.columnempName = base.Columns["empName"];
						this.columnempISN = base.Columns["empISN"];
						this.columnclrExaminationDate = base.Columns["clrExaminationDate"];
						this.columninvSurgeryPayment = base.Columns["invSurgeryPayment"];
						this.columnpltISN = base.Columns["pltISN"];
						this.columnpltName = base.Columns["pltName"];
						return;
					}
					
					protected override DataRow NewRowFromBuilder (DataRowBuilder builder)
					
					{
						DataRow theDataRow;
						theDataRow = ((DataRow) new dsInvoice.vw_ClinicalInvoicesRow (builder));
						goto L_0009;
						
					L_0009:
						
						{
						}
						return theDataRow;
					}
					
					public dsInvoice.vw_ClinicalInvoicesRow Newvw_ClinicalInvoicesRow ()
					
					{
						dsInvoice.vw_ClinicalInvoicesRow theVw_ClinicalInvoicesRow;
						theVw_ClinicalInvoicesRow = ((dsInvoice.vw_ClinicalInvoicesRow) base.NewRow ());
						goto L_000E;
						
					L_000E:
						
						{
						}
						return theVw_ClinicalInvoicesRow;
					}
					
					protected override void OnRowChanged (DataRowChangeEventArgs e)
					
					{
						base.OnRowChanged (e);
						if (this.vw_ClinicalInvoicesRowChanged == null)
						{
							goto L_0031;
						}
						this.vw_ClinicalInvoicesRowChanged (this, new dsInvoice.vw_ClinicalInvoicesRowChangeEvent (((dsInvoice.vw_ClinicalInvoicesRow) e.Row), e.Action));
						
					L_0031:
						return;
					}
					
					protected override void OnRowChanging (DataRowChangeEventArgs e)
					
					{
						base.OnRowChanging (e);
						if (this.vw_ClinicalInvoicesRowChanging == null)
						{
							goto L_0031;
						}
						this.vw_ClinicalInvoicesRowChanging (this, new dsInvoice.vw_ClinicalInvoicesRowChangeEvent (((dsInvoice.vw_ClinicalInvoicesRow) e.Row), e.Action));
						
					L_0031:
						return;
					}
					
					protected override void OnRowDeleted (DataRowChangeEventArgs e)
					
					{
						base.OnRowDeleted (e);
						if (this.vw_ClinicalInvoicesRowDeleted == null)
						{
							goto L_0031;
						}
						this.vw_ClinicalInvoicesRowDeleted (this, new dsInvoice.vw_ClinicalInvoicesRowChangeEvent (((dsInvoice.vw_ClinicalInvoicesRow) e.Row), e.Action));
						
					L_0031:
						return;
					}
					
					protected override void OnRowDeleting (DataRowChangeEventArgs e)
					
					{
						base.OnRowDeleting (e);
						if (this.vw_ClinicalInvoicesRowDeleting == null)
						{
							goto L_0031;
						}
						this.vw_ClinicalInvoicesRowDeleting (this, new dsInvoice.vw_ClinicalInvoicesRowChangeEvent (((dsInvoice.vw_ClinicalInvoicesRow) e.Row), e.Action));
						
					L_0031:
						return;
					}
					
					public void Removevw_ClinicalInvoicesRow (dsInvoice.vw_ClinicalInvoicesRow row)
					
					{
						base.Rows.Remove (((DataRow) row));
						return;
					}
					
				#endregion
			}
			
			
			[System.Diagnostics.DebuggerStepThroughAttribute ()]
			public class vw_ClinicalInvoicesRow : DataRow
			
			{
				
				#region Fields
					private dsInvoice.vw_ClinicalInvoicesDataTable tablevw_ClinicalInvoices;
				#endregion
				
				#region Constructors
				
					internal vw_ClinicalInvoicesRow (DataRowBuilder rb)
						 : base (rb)
					
					{
						this.tablevw_ClinicalInvoices = ((dsInvoice.vw_ClinicalInvoicesDataTable) base.Table);
						return;
					}
					
				#endregion
				
				#region Properties
				
					public string clrDoctorPrescription
					
					{
						get
						{
							InvalidCastException theInvalidCastException;
							string theString;
							
						L_0000:
							try
							{
								theString = ((string) base[this.tablevw_ClinicalInvoices.clrDoctorPrescriptionColumn]);
							}
							catch (InvalidCastException theInvalidCastException2)
							{
								
							L_0019:
								theInvalidCastException = theInvalidCastException2;
								throw new StrongTypingException ("Cannot get value because it is DBNull.", ((Exception) theInvalidCastException));
							}
							
						L_0026:
							
							{
							}
							return theString;
						}
						set
						{
							base[this.tablevw_ClinicalInvoices.clrDoctorPrescriptionColumn] = value;
							return;
						}
					}
					
					
					public DateTime clrExaminationDate
					
					{
						get
						{
							InvalidCastException theInvalidCastException;
							DateTime theDateTime;
							
						L_0000:
							try
							{
								theDateTime = ((DateTime) base[this.tablevw_ClinicalInvoices.clrExaminationDateColumn]);
							}
							catch (InvalidCastException theInvalidCastException2)
							{
								
							L_001E:
								theInvalidCastException = theInvalidCastException2;
								throw new StrongTypingException ("Cannot get value because it is DBNull.", ((Exception) theInvalidCastException));
							}
							
						L_002B:
							
							{
							}
							return theDateTime;
						}
						set
						{
							base[this.tablevw_ClinicalInvoices.clrExaminationDateColumn] = value;
							return;
						}
					}
					
					
					public int clrISN
					
					{
						get
						{
							int i;
							i = ((int) base[this.tablevw_ClinicalInvoices.clrISNColumn]);
							goto L_001A;
							
						L_001A:
							
							{
							}
							return i;
						}
						set
						{
							base[this.tablevw_ClinicalInvoices.clrISNColumn] = value;
							return;
						}
					}
					
					
					public int empISN
					
					{
						get
						{
							int i;
							i = ((int) base[this.tablevw_ClinicalInvoices.empISNColumn]);
							goto L_001A;
							
						L_001A:
							
							{
							}
							return i;
						}
						set
						{
							base[this.tablevw_ClinicalInvoices.empISNColumn] = value;
							return;
						}
					}
					
					
					public string empName
					
					{
						get
						{
							InvalidCastException theInvalidCastException;
							string theString;
							
						L_0000:
							try
							{
								theString = ((string) base[this.tablevw_ClinicalInvoices.empNameColumn]);
							}
							catch (InvalidCastException theInvalidCastException2)
							{
								
							L_0019:
								theInvalidCastException = theInvalidCastException2;
								throw new StrongTypingException ("Cannot get value because it is DBNull.", ((Exception) theInvalidCastException));
							}
							
						L_0026:
							
							{
							}
							return theString;
						}
						set
						{
							base[this.tablevw_ClinicalInvoices.empNameColumn] = value;
							return;
						}
					}
					
					
					public decimal invExaminationPayment
					
					{
						get
						{
							InvalidCastException theInvalidCastException;
							decimal theDecimal;
							
						L_0000:
							try
							{
								theDecimal = ((decimal) base[this.tablevw_ClinicalInvoices.invExaminationPaymentColumn]);
							}
							catch (InvalidCastException theInvalidCastException2)
							{
								
							L_001E:
								theInvalidCastException = theInvalidCastException2;
								throw new StrongTypingException ("Cannot get value because it is DBNull.", ((Exception) theInvalidCastException));
							}
							
						L_002B:
							
							{
							}
							return theDecimal;
						}
						set
						{
							base[this.tablevw_ClinicalInvoices.invExaminationPaymentColumn] = value;
							return;
						}
					}
					
					
					public decimal invMedicinePayment
					
					{
						get
						{
							InvalidCastException theInvalidCastException;
							decimal theDecimal;
							
						L_0000:
							try
							{
								theDecimal = ((decimal) base[this.tablevw_ClinicalInvoices.invMedicinePaymentColumn]);
							}
							catch (InvalidCastException theInvalidCastException2)
							{
								
							L_001E:
								theInvalidCastException = theInvalidCastException2;
								throw new StrongTypingException ("Cannot get value because it is DBNull.", ((Exception) theInvalidCastException));
							}
							
						L_002B:
							
							{
							}
							return theDecimal;
						}
						set
						{
							base[this.tablevw_ClinicalInvoices.invMedicinePaymentColumn] = value;
							return;
						}
					}
					
					
					public decimal invMedicineSkillPayment
					
					{
						get
						{
							InvalidCastException theInvalidCastException;
							decimal theDecimal;
							
						L_0000:
							try
							{
								theDecimal = ((decimal) base[this.tablevw_ClinicalInvoices.invMedicineSkillPaymentColumn]);
							}
							catch (InvalidCastException theInvalidCastException2)
							{
								
							L_001E:
								theInvalidCastException = theInvalidCastException2;
								throw new StrongTypingException ("Cannot get value because it is DBNull.", ((Exception) theInvalidCastException));
							}
							
						L_002B:
							
							{
							}
							return theDecimal;
						}
						set
						{
							base[this.tablevw_ClinicalInvoices.invMedicineSkillPaymentColumn] = value;
							return;
						}
					}
					
					
					public decimal invSurgeryPayment
					
					{
						get
						{
							InvalidCastException theInvalidCastException;
							decimal theDecimal;
							
						L_0000:
							try
							{
								theDecimal = ((decimal) base[this.tablevw_ClinicalInvoices.invSurgeryPaymentColumn]);
							}
							catch (InvalidCastException theInvalidCastException2)
							{
								
							L_001E:
								theInvalidCastException = theInvalidCastException2;
								throw new StrongTypingException ("Cannot get value because it is DBNull.", ((Exception) theInvalidCastException));
							}
							
						L_002B:
							
							{
							}
							return theDecimal;
						}
						set
						{
							base[this.tablevw_ClinicalInvoices.invSurgeryPaymentColumn] = value;
							return;
						}
					}
					
					
					public string patID
					
					{
						get
						{
							InvalidCastException theInvalidCastException;
							string theString;
							
						L_0000:
							try
							{
								theString = ((string) base[this.tablevw_ClinicalInvoices.patIDColumn]);
							}
							catch (InvalidCastException theInvalidCastException2)
							{
								
							L_0019:
								theInvalidCastException = theInvalidCastException2;
								throw new StrongTypingException ("Cannot get value because it is DBNull.", ((Exception) theInvalidCastException));
							}
							
						L_0026:
							
							{
							}
							return theString;
						}
						set
						{
							base[this.tablevw_ClinicalInvoices.patIDColumn] = value;
							return;
						}
					}
					
					
					public int patISN
					
					{
						get
						{
							int i;
							i = ((int) base[this.tablevw_ClinicalInvoices.patISNColumn]);
							goto L_001A;
							
						L_001A:
							
							{
							}
							return i;
						}
						set
						{
							base[this.tablevw_ClinicalInvoices.patISNColumn] = value;
							return;
						}
					}
					
					
					public string patName
					
					{
						get
						{
							InvalidCastException theInvalidCastException;
							string theString;
							
						L_0000:
							try
							{
								theString = ((string) base[this.tablevw_ClinicalInvoices.patNameColumn]);
							}
							catch (InvalidCastException theInvalidCastException2)
							{
								
							L_0019:
								theInvalidCastException = theInvalidCastException2;
								throw new StrongTypingException ("Cannot get value because it is DBNull.", ((Exception) theInvalidCastException));
							}
							
						L_0026:
							
							{
							}
							return theString;
						}
						set
						{
							base[this.tablevw_ClinicalInvoices.patNameColumn] = value;
							return;
						}
					}
					
					
					public int pltISN
					
					{
						get
						{
							InvalidCastException theInvalidCastException;
							int i;
							
						L_0000:
							try
							{
								i = ((int) base[this.tablevw_ClinicalInvoices.pltISNColumn]);
							}
							catch (InvalidCastException theInvalidCastException2)
							{
								
							L_001A:
								theInvalidCastException = theInvalidCastException2;
								throw new StrongTypingException ("Cannot get value because it is DBNull.", ((Exception) theInvalidCastException));
							}
							
						L_0027:
							
							{
							}
							return i;
						}
						set
						{
							base[this.tablevw_ClinicalInvoices.pltISNColumn] = value;
							return;
						}
					}
					
					
					public string pltName
					
					{
						get
						{
							InvalidCastException theInvalidCastException;
							string theString;
							
						L_0000:
							try
							{
								theString = ((string) base[this.tablevw_ClinicalInvoices.pltNameColumn]);
							}
							catch (InvalidCastException theInvalidCastException2)
							{
								
							L_0019:
								theInvalidCastException = theInvalidCastException2;
								throw new StrongTypingException ("Cannot get value because it is DBNull.", ((Exception) theInvalidCastException));
							}
							
						L_0026:
							
							{
							}
							return theString;
						}
						set
						{
							base[this.tablevw_ClinicalInvoices.pltNameColumn] = value;
							return;
						}
					}
					
				#endregion
				
				#region Methods
				
					public bool IsclrDoctorPrescriptionNull ()
					
					{
						bool theBoolean;
						theBoolean = base.IsNull (this.tablevw_ClinicalInvoices.clrDoctorPrescriptionColumn);
						goto L_0014;
						
					L_0014:
						
						{
						}
						return theBoolean;
					}
					
					public bool IsclrExaminationDateNull ()
					
					{
						bool theBoolean;
						theBoolean = base.IsNull (this.tablevw_ClinicalInvoices.clrExaminationDateColumn);
						goto L_0014;
						
					L_0014:
						
						{
						}
						return theBoolean;
					}
					
					public bool IsempNameNull ()
					
					{
						bool theBoolean;
						theBoolean = base.IsNull (this.tablevw_ClinicalInvoices.empNameColumn);
						goto L_0014;
						
					L_0014:
						
						{
						}
						return theBoolean;
					}
					
					public bool IsinvExaminationPaymentNull ()
					
					{
						bool theBoolean;
						theBoolean = base.IsNull (this.tablevw_ClinicalInvoices.invExaminationPaymentColumn);
						goto L_0014;
						
					L_0014:
						
						{
						}
						return theBoolean;
					}
					
					public bool IsinvMedicinePaymentNull ()
					
					{
						bool theBoolean;
						theBoolean = base.IsNull (this.tablevw_ClinicalInvoices.invMedicinePaymentColumn);
						goto L_0014;
						
					L_0014:
						
						{
						}
						return theBoolean;
					}
					
					public bool IsinvMedicineSkillPaymentNull ()
					
					{
						bool theBoolean;
						theBoolean = base.IsNull (this.tablevw_ClinicalInvoices.invMedicineSkillPaymentColumn);
						goto L_0014;
						
					L_0014:
						
						{
						}
						return theBoolean;
					}
					
					public bool IsinvSurgeryPaymentNull ()
					
					{
						bool theBoolean;
						theBoolean = base.IsNull (this.tablevw_ClinicalInvoices.invSurgeryPaymentColumn);
						goto L_0014;
						
					L_0014:
						
						{
						}
						return theBoolean;
					}
					
					public bool IspatIDNull ()
					
					{
						bool theBoolean;
						theBoolean = base.IsNull (this.tablevw_ClinicalInvoices.patIDColumn);
						goto L_0014;
						
					L_0014:
						
						{
						}
						return theBoolean;
					}
					
					public bool IspatNameNull ()
					
					{
						bool theBoolean;
						theBoolean = base.IsNull (this.tablevw_ClinicalInvoices.patNameColumn);
						goto L_0014;
						
					L_0014:
						
						{
						}
						return theBoolean;
					}
					
					public bool IspltISNNull ()
					
					{
						bool theBoolean;
						theBoolean = base.IsNull (this.tablevw_ClinicalInvoices.pltISNColumn);
						goto L_0014;
						
					L_0014:
						
						{
						}
						return theBoolean;
					}
					
					public bool IspltNameNull ()
					
					{
						bool theBoolean;
						theBoolean = base.IsNull (this.tablevw_ClinicalInvoices.pltNameColumn);
						goto L_0014;
						
					L_0014:
						
						{
						}
						return theBoolean;
					}
					
					public void SetclrDoctorPrescriptionNull ()
					
					{
						base[this.tablevw_ClinicalInvoices.clrDoctorPrescriptionColumn] = Convert.DBNull;
						return;
					}
					
					public void SetclrExaminationDateNull ()
					
					{
						base[this.tablevw_ClinicalInvoices.clrExaminationDateColumn] = Convert.DBNull;
						return;
					}
					
					public void SetempNameNull ()
					
					{
						base[this.tablevw_ClinicalInvoices.empNameColumn] = Convert.DBNull;
						return;
					}
					
					public void SetinvExaminationPaymentNull ()
					
					{
						base[this.tablevw_ClinicalInvoices.invExaminationPaymentColumn] = Convert.DBNull;
						return;
					}
					
					public void SetinvMedicinePaymentNull ()
					
					{
						base[this.tablevw_ClinicalInvoices.invMedicinePaymentColumn] = Convert.DBNull;
						return;
					}
					
					public void SetinvMedicineSkillPaymentNull ()
					
					{
						base[this.tablevw_ClinicalInvoices.invMedicineSkillPaymentColumn] = Convert.DBNull;
						return;
					}
					
					public void SetinvSurgeryPaymentNull ()
					
					{
						base[this.tablevw_ClinicalInvoices.invSurgeryPaymentColumn] = Convert.DBNull;
						return;
					}
					
					public void SetpatIDNull ()
					
					{
						base[this.tablevw_ClinicalInvoices.patIDColumn] = Convert.DBNull;
						return;
					}
					
					public void SetpatNameNull ()
					
					{
						base[this.tablevw_ClinicalInvoices.patNameColumn] = Convert.DBNull;
						return;
					}
					
					public void SetpltISNNull ()
					
					{
						base[this.tablevw_ClinicalInvoices.pltISNColumn] = Convert.DBNull;
						return;
					}
					
					public void SetpltNameNull ()
					
					{
						base[this.tablevw_ClinicalInvoices.pltNameColumn] = Convert.DBNull;
						return;
					}
					
				#endregion
			}
			
			
			[System.Diagnostics.DebuggerStepThroughAttribute ()]
			public class vw_ClinicalInvoicesRowChangeEvent : EventArgs
			
			{
				
				#region Fields
					private DataRowAction eventAction;
					private dsInvoice.vw_ClinicalInvoicesRow eventRow;
				#endregion
				
				#region Constructors
				
					public vw_ClinicalInvoicesRowChangeEvent (dsInvoice.vw_ClinicalInvoicesRow row, DataRowAction action)
					
					{
						this.eventRow = row;
						this.eventAction = action;
						return;
					}
					
				#endregion
				
				#region Properties
				
					public DataRowAction Action
					
					{
						get
						{
							DataRowAction theDataRowAction;
							theDataRowAction = this.eventAction;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theDataRowAction;
						}
					}
					
					
					public dsInvoice.vw_ClinicalInvoicesRow Row
					
					{
						get
						{
							dsInvoice.vw_ClinicalInvoicesRow theVw_ClinicalInvoicesRow;
							theVw_ClinicalInvoicesRow = this.eventRow;
							goto L_0009;
							
						L_0009:
							
							{
							}
							return theVw_ClinicalInvoicesRow;
						}
					}
					
				#endregion
			}
			
			
			[System.Serializable()]
			public delegate void vw_ClinicalInvoicesRowChangeEventHandler (object sender, dsInvoice.vw_ClinicalInvoicesRowChangeEvent e);
		#endregion
		
		#region Constructors
		
			public dsInvoice ()
			
			{
				CollectionChangeEventHandler theCollectionChangeEventHandler;
				this.InitClass ();
				theCollectionChangeEventHandler = new CollectionChangeEventHandler (this.SchemaChanged);
				base.Tables.CollectionChanged += theCollectionChangeEventHandler;
				base.Relations.CollectionChanged += theCollectionChangeEventHandler;
				return;
			}
			
			
			protected dsInvoice (SerializationInfo info, StreamingContext context)
			
			{
				string theString;
				DataSet theDataSet;
				CollectionChangeEventHandler theCollectionChangeEventHandler;
				theString = ((string) info.GetValue ("XmlSchema", typeof (string)));
				if (theString == null)
				{
					goto L_00C9;
				}
				theDataSet = new DataSet ();
				theDataSet.ReadXmlSchema (((XmlReader) new XmlTextReader (((TextReader) new StringReader (theString)))));
				if (theDataSet.Tables["vw_ClinicalInvoices"] == null)
				{
					goto L_0070;
				}
				base.Tables.Add (((DataTable) new vw_ClinicalInvoicesDataTable (theDataSet.Tables["vw_ClinicalInvoices"])));
				
			L_0070:
				
				{
				}
				base.DataSetName = theDataSet.DataSetName;
				base.Prefix = theDataSet.Prefix;
				base.Namespace = theDataSet.Namespace;
				base.Locale = theDataSet.Locale;
				base.CaseSensitive = theDataSet.CaseSensitive;
				base.EnforceConstraints = theDataSet.EnforceConstraints;
				base.Merge (theDataSet, false, MissingSchemaAction.Add);
				this.InitVars ();
				goto L_00CF;
				
			L_00C9:
				
				{
				}
				this.InitClass ();
				
			L_00CF:
				
				{
				}
				base.GetSerializationData (info, context);
				theCollectionChangeEventHandler = new CollectionChangeEventHandler (this.SchemaChanged);
				base.Tables.CollectionChanged += theCollectionChangeEventHandler;
				base.Relations.CollectionChanged += theCollectionChangeEventHandler;
				return;
			}
			
		#endregion
		
		#region Properties
		
			[System.ComponentModel.BrowsableAttribute (false)]
			[System.ComponentModel.DesignerSerializationVisibilityAttribute (DesignerSerializationVisibility.Content)]
			public vw_ClinicalInvoicesDataTable vw_ClinicalInvoices
			
			{
				get
				{
					vw_ClinicalInvoicesDataTable theVw_ClinicalInvoicesDataTable;
					theVw_ClinicalInvoicesDataTable = this.tablevw_ClinicalInvoices;
					goto L_0009;
					
				L_0009:
					
					{
					}
					return theVw_ClinicalInvoicesDataTable;
				}
			}
			
		#endregion
		
		#region Methods
		
			public override DataSet Clone ()
			
			{
				dsInvoice theDsInvoice;
				DataSet theDataSet;
				theDsInvoice = ((dsInvoice) base.Clone ());
				theDsInvoice.InitVars ();
				theDataSet = ((DataSet) theDsInvoice);
				goto L_0016;
				
			L_0016:
				
				{
				}
				return theDataSet;
			}
			
			protected override XmlSchema GetSchemaSerializable ()
			
			{
				MemoryStream theMemoryStream;
				XmlSchema theXmlSchema;
				theMemoryStream = new MemoryStream ();
				base.WriteXmlSchema (((XmlWriter) new XmlTextWriter (((Stream) theMemoryStream), ((Encoding) null))));
				theMemoryStream.Position = 0L;
				theXmlSchema = XmlSchema.Read (((XmlReader) new XmlTextReader (((Stream) theMemoryStream))), ((ValidationEventHandler) null));
				goto L_002A;
				
			L_002A:
				
				{
				}
				return theXmlSchema;
			}
			
			private void InitClass ()
			
			{
				base.DataSetName = "dsInvoice";
				base.Prefix = "";
				base.Namespace = "http://www.tempuri.org/dsInvoice.xsd";
				base.Locale = new CultureInfo ("en-US");
				base.CaseSensitive = false;
				base.EnforceConstraints = true;
				this.tablevw_ClinicalInvoices = new vw_ClinicalInvoicesDataTable ();
				base.Tables.Add (((DataTable) this.tablevw_ClinicalInvoices));
				return;
			}
			
			internal void InitVars ()
			
			{
				this.tablevw_ClinicalInvoices = ((vw_ClinicalInvoicesDataTable) base.Tables["vw_ClinicalInvoices"]);
				if (this.tablevw_ClinicalInvoices == null)
				{
					goto L_002E;
				}
				this.tablevw_ClinicalInvoices.InitVars ();
				
			L_002E:
				return;
			}
			
			protected override void ReadXmlSerializable (XmlReader reader)
			
			{
				DataSet theDataSet;
				this.Reset ();
				theDataSet = new DataSet ();
				XmlReadMode theXmlReadMode = theDataSet.ReadXml (reader);
				if (theDataSet.Tables["vw_ClinicalInvoices"] == null)
				{
					goto L_0046;
				}
				base.Tables.Add (((DataTable) new vw_ClinicalInvoicesDataTable (theDataSet.Tables["vw_ClinicalInvoices"])));
				
			L_0046:
				
				{
				}
				base.DataSetName = theDataSet.DataSetName;
				base.Prefix = theDataSet.Prefix;
				base.Namespace = theDataSet.Namespace;
				base.Locale = theDataSet.Locale;
				base.CaseSensitive = theDataSet.CaseSensitive;
				base.EnforceConstraints = theDataSet.EnforceConstraints;
				base.Merge (theDataSet, false, MissingSchemaAction.Add);
				this.InitVars ();
				return;
			}
			
			private void SchemaChanged (object sender, CollectionChangeEventArgs e)
			
			{
				if (e.Action != CollectionChangeAction.Remove)
				{
					goto L_000F;
				}
				this.InitVars ();
				
			L_000F:
				return;
			}
			
			protected override bool ShouldSerializeRelations ()
			
			{
				bool theBoolean;
				theBoolean = false;
				goto L_0004;
				
			L_0004:
				
				{
				}
				return theBoolean;
			}
			
			protected override bool ShouldSerializeTables ()
			
			{
				bool theBoolean;
				theBoolean = false;
				goto L_0004;
				
			L_0004:
				
				{
				}
				return theBoolean;
			}
			
			private bool ShouldSerializevw_ClinicalInvoices ()
			
			{
				bool theBoolean;
				theBoolean = false;
				goto L_0004;
				
			L_0004:
				
				{
				}
				return theBoolean;
			}
			
		#endregion
	}
	
}

